package com.github.browep.bat;

import android.app.Application;
import com.github.browep.bat.dao.Dao;

/**
 * Created by IntelliJ IDEA.
 * User: paul
 * Date: 8/26/11
 * Time: 3:55 PM
 * To change this template use File | Settings | File Templates.
 */
public class MyApplication extends Application {
    private static MyApplication instance;
    private ScreenService screenService;
    private Dao dao;

    @Override
    public void onCreate() {
        super.onCreate();
        instance = this;
        screenService = new ScreenService(getApplicationContext(),"data.xml");
        this.dao = new Dao(getApplicationContext());
    }


    public static MyApplication getInstance() {
        return instance;
    }

    public ScreenService getScreenService() {
        return screenService;
    }

    public Dao getDao() {
        return dao;
    }
}
